using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using MyCityCab.Core;
using WebFramework;
using MyCityCab.Core.View;
using WebFramework.Utils;

public partial class _controls_Login : UserControlBase, ILoginView
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void btnLogin_Click(object sender, EventArgs e)
    {
        UserController controller = new UserController(this);
        bool status = controller.PerformLogin();
        if (status)
        {
            Navigation.ReturnToPage();
        }
    }

    #region ILoginView Members

    public string Username
    {
        get { return txtEmail.Text; }
    }

    public string Password
    {
        get { return txtPassword.Text; }
    }

    public bool RememberMe
    {
        get { return false; }
    }

    public string ReturnUrl
    {
        get { return Request.QueryString["ReturnUrl"]; }
    }

    #endregion
}
